export const URI : any = {
    domain: 'http://api.2015mobi.com/',
    // domain: 'http://api.90838.com/',
    route: {
        'game_list': 'wechat/game/list', //游戏列表
        'game_category': '/wechat/game/category', //游戏分类列表
        'game_info': 'wechat/game/info', //游戏详情
        'game_preview': 'wechat/game/preview',//首页游戏预览
        'game_pay': 'wechat/mp/game/pay', //游戏购买
        'game_play': 'wechat/mp/game/play', //加载游戏
        'game_win': 'wechat/mp/game/win', //获取游戏分值
        'game_statistics': 'wechat/mp/game/statistics', //访问量统计
        'game_red_envelope': 'wechat/mp/game/red/envelope', //口令红包
        'my_project': 'wechat/mp/my/project', //我的项目
        'game_source_list': '/wechat/mp/game/source/list', //游戏素材
        'game_source_upload': 'wechat/mp/game/source/upload', //上传素材
        'game_source_update': 'wechat/mp/game/source/update', //上传素材wechat/mp/game/source/update
        'project_set': 'wechat/mp/project/set', //设置活动信息
        'money_recharge': 'wechat/mp/money/recharge', //用户充值
        'member_info': 'wechat/mp/member/info', //拉取玩家信息
        'game_ranking': 'wechat/mp/game/ranking', //显示排名
        'luck_draw': 'wechat/mp/luck/draw', //抽奖
        'redpage_grant': 'wechat/mp/redpage/grant', //发放红包
        'guest_login': '/member/guest/login', //登陆
        'guest_register': '/member/guest/register/', //注册
        'guest_register_code_phone': '/member/guest/register/code/phone', //短信注册码
        'guest_forgot': '/member/guest/forgot/', //忘记密码（修改密码）
        'guest_forgot_code_phone': '/member/guest/forgot/code/phone', //忘记密码短信注册码
        'update_password': '/member/password', //修改密码
        'member_update': '/member/update', //修改用户信息
        'member_show': '/member/show', //用户信息
        'member_edit': '/member/edit/', //用户详细信息
        'bind_public_number': 'wechat/mp/binding', //绑定公众号
        'load_public_number': 'wechat/mp/binding/load' //获取绑定公众号
    }
}

export class URIConf {
    route(name : string) {
        return URI.domain + URI.route[name];
    }
}